<template>
  <div class="box">
    <!--<div style="width: 200px;">-->
    <!--  <el-input @input="inputName" v-model="name" placeholder="请输入学生的姓名"></el-input>-->
    <!--</div>-->
    <div>
      <el-radio-group v-model="type" @input="typeChange">
        <el-radio-button label="0">全部</el-radio-button>
        <el-radio-button label="1">已建议</el-radio-button>
        <el-radio-button label="2">未建议</el-radio-button>
      </el-radio-group>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      name: '',
      type: this.dataType, //显示数据的类型，0全部，1未建议，2已建议
    }
  },
  methods: {
    inputName() {
      this.$emit('inputName', this.name)
    },
    typeChange(val) {
      this.$emit('typeChange', val)
    }
  },
  props: {
    dataType: {
      type: Number,
      default: 0
    }
  }
}
</script>

<style scoped lang="less">
.box {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
</style>
